package mest.service.cxj;

import mest.VO.cxj.PlanCostorderVO;
import mest.entity.PlanCostOrder;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface PlanCostOrderService {


    /**
     * 添加费用单
     */
    Integer insertPlanCostOrder(PlanCostOrder pco, String theirDb);

    /**
     * 查询全部费用单
     */
    List<PlanCostorderVO> selectAllPlanCostOrder(Integer page, Integer limit, Integer status, String content, String theirDb);

    /**
     * 费用单数量
     */
    Integer selectCountPlanCostOrder(Integer status, String content, String theirDb);

    /**
     * 将单据转完成状态
     */
    Integer changeStatus(Integer id, String theirDb);

    /**
     * 修改计划费用单信息
     */
    Integer modifyPlanCostOrder(PlanCostOrder pco, String theirDb);

    /**
     *  获取计划费用单信息
     */
    PlanCostOrder selectPlanCostOrderById(Integer id, String theirDb);

    /**
     * 修改计划费用单金额
     */
    Integer updatePlanCostOrderByMoney(Integer id, BigDecimal hasBennMoney, String theirDb);


}
